package 日程提醒工具.model;

import java.time.LocalDateTime;

public class DoneSchedule extends Schedule {
    private LocalDateTime doneTime;

    public DoneSchedule() {

    }

    public DoneSchedule(Schedule schedule) {
        this.title = schedule.getTitle();
        this.description = schedule.getDescription();
        this.deadline = schedule.getDeadline();
        this.isDone = schedule.isDone();
        this.doneTime = LocalDateTime.now();
    }

    public LocalDateTime getDoneTime() {
        return doneTime;
    }
}
